<template>
  <rx-ui-msgbox :msgtype="msgtype"
    :title="title"
    :content="content"
  >
  <div slot="footer">
    <rx-button type="primary" @click="$emit('resolve')">确认</rx-button>
  </div>
  </rx-ui-msgbox>
</template>

<script>
import ui from './ui.vue'
export default {
  name: "rx-msgbox",
  props: {
    msgtype: {
      type: String,
      default: "warn"
    },
    title: {
      type: String,
      default: "提示"
    },
    content: {
      type: String,
      default: ""
    }
  },
  components: {
    'rx-ui-msgbox':ui
  }
};
</script>
